<!--
 * @Author: gy
 * @Date: 2020-07-02 10:26:18
 * @LastEditors: gy
 * @LastEditTime: 2020-07-03 11:20:51
-->
<!-- 
material_code	是	string	物料编号/编码（品号）
material_spec	否	string	图号/型号 （规格）
material_name	否	string	描述/名称 （品名）
material_brand	否	string	品牌
surface_treatment	否	string	表面处理
heat_treatment	否	string	热处理
materia_quality	否	string	材质
material_wight	否	string	重量
fk_matrial_atype_id	否	string	物料类型外键
remark	否	string	备注
-->
<!--  -->
<template>
    <div>
        <el-form ref="form" :model="form" :rules="rules">
            <el-form-item label="物料编号" prop="material_code">
                <el-input v-model="form.material_code"></el-input>
            </el-form-item>
            <el-form-item label="图号" prop="material_spec">
                <el-input v-model="form.material_spec"></el-input>
            </el-form-item>
            <el-form-item label="名称" prop="material_name">
                <el-input v-model="form.material_name"></el-input>
            </el-form-item>
            <el-form-item label="品牌" prop="material_brand">
                <el-input v-model.number="form.material_brand"></el-input>
            </el-form-item>
            <el-form-item label="表面处理" prop="surface_treatment">
                <el-input v-model="form.surface_treatment"></el-input>
            </el-form-item>
            <el-form-item label="热处理" prop="heat_treatment">
                <el-input v-model="form.heat_treatment"></el-input>
            </el-form-item>
            <el-form-item label="材质" prop="materia_quality">
                <el-input v-model="form.materia_quality"></el-input>
            </el-form-item>
            <el-form-item label="重量" prop="material_wight">
                <el-input v-model="form.material_wight"></el-input>
            </el-form-item>
            <el-form-item label="物料类型外键" prop="fk_matrial_atype_id">
                <el-input v-model="form.fk_matrial_atype_id"></el-input>
            </el-form-item>
            <el-form-item label="备注">
                <el-input type="textarea" v-model="form.remark"></el-input>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
export default {
    props: {},
    data() {
        return {
            form: {
                material_code: "",
                material_spec: "",
                material_name: "",
                material_brand: "",
                surface_treatment: "",
                heat_treatment: "",
                materia_quality: "",
                material_wight: "",
                fk_matrial_atype_id: "",
                remark: ""
            },
            rules: {
                material_code: [
                    {
                        required: true,
                        message: "请输入物料编号",
                        trigger: "blur"
                    }
                ],
                material_spec: [
                    {
                        required: true,
                        message: "请输入图号/型号",
                        trigger: "blur"
                    }
                ],
                material_name: [
                    {
                        required: true,
                        message: "请输入描述/名称",
                        trigger: "blur"
                    }
                ]
            },
            checkRepeatParam: {
                url: "/material/api/MesMaterial/CheckMesMaterialCodeUnique",
                param: "material_code",
                method: "get"
            }
        };
    },

    components: {},

    methods: {}
};
</script>
<style lang="scss" scoped></style>
